var status = 0;
var typede = 0;

function start() {
    status = -1;
    action(1, 0, 0)
}

function action(d, c, b) {
    if (d == -1) {
        cm.dispose()
    } else {
        if (d == 0) {
            cm.dispose();
            return
        }
        if (d == 1) {
            status++
        }
        if (status == 0) {
            var a = "";
            a = "#fMob/1210102.img/move/0##fMob/1210102.img/move/0##bPPMS - 143#fMob/1210102.img/move/0##fMob/1210102.img/move/0#\r\n";
            a += "    #L100##e#r>>>>>>追忆冒险岛新手指导员<<<<<<#k#n#l\r\n\r\n";
            a += "#L2##b每日签到#l #L3#福利项目#l #L4#学习技能#l #L5##r金卷中介#k#l\r\n";
            a += "#L6##b等级突破#l                         #L9##b家族管理#l\r\n";
            a += "#L7##r终冒险家#l     #L1##g职业武器商店#k#l     #L8##b道具删除#k#l\r\n";
            a += "#L10##r金币服务#l     #L18##g金卷现金商店#k#l     #L13##b追忆银行#l\r\n";
            a += "#L11##r副本重置#l                         #L12##r会员系统#l\r\n";
            a += "#L14##r终极无限#l #L15##r免费道具#l #L16##b活跃系统#l #L17##b在线奖励#l";
            cm.askMenu(a)
        } else {
            if (b == 18) {
                cm.dispose();
                cm.openNpc(2140005)
            } else {
                if (b == 1) {
                    cm.dispose();
                    cm.openNpc(1012121)
                } else {
                    if (b == 2) {
                        cm.dispose();
                        cm.openNpc(9010060, 1)
                    } else {
                        if (b == 3) {
                            cm.dispose();
                            cm.openNpc(9010060, 2)
                        } else {
                            if (b == 4) {
                                cm.dispose();
                                cm.openNpc(9010060, 3)
                            } else {
                                if (b == 5) {
                                    cm.dispose();
                                    cm.openNpc(9010060, 4)
                                } else {
                                    if (b == 6) {
                                        if (cm.getPlayer().getLevel() < 199) {
                                            cm.sendOk("突破等级限制等级200才可以进行,请200级后在来找我。")
                                        } else {
                                            if (cm.getBossLog("等级突破", 1) > 1) {
                                                cm.sendOk("你已经完成了等级突破。")
                                            } else {
                                                if (cm.getMeso() > 49999999) {
                                                    cm.setBossLog("等级突破");
                                                    cm.gainMeso(-50000000);
                                                    cm.sendOk("等级突破成功,您现在最高可升至255级。")
                                                } else {
                                                    cm.sendOk("突破等级限制需要收取5000W金币,你没有足够的金币。")
                                                }
                                            }
                                        }
                                        status = -1
                                    } else {
                                        if (b == 7) {
                                            cm.dispose();
                                            cm.openNpc(1105000, 1)
                                        } else {
                                            if (b == 8) {
                                                cm.dispose();
                                                cm.openNpc(9010060, 5)
                                            } else {
                                                if (b == 9) {
                                                    cm.dispose();
                                                    cm.openNpc(9010060, 6)
                                                } else {
                                                    if (b == 10) {
                                                        cm.dispose();
                                                        cm.openNpc(9010060, 7)
                                                    } else {
                                                        if (b == 11) {
                                                            cm.dispose();
                                                            cm.openNpc(9010060, 8)
                                                        } else {
                                                            if (b == 12) {
                                                                cm.dispose();
                                                                cm.openNpc(9010060, 9)
                                                            } else {
                                                                if (b == 13) {
                                                                    cm.dispose();
                                                                    cm.openNpc(9010060, 10)
                                                                } else {
                                                                    if (b == 14) {
                                                                        cm.dispose();
                                                                        cm.openNpc(9010060, 11)
                                                                    } else {
                                                                        if (b == 15) {
                                                                            cm.dispose();
                                                                            cm.openNpc(9010060, 12)
                                                                        } else {
                                                                            if (b == 16) {
                                                                                cm.dispose();
                                                                                cm.sendOk("紧急添加中。")
                                                                            } else {
                                                                                if (b == 17) {
                                                                                    cm.dispose();
                                                                                    cm.openNpc(9000030, 1)
                                                                                } else {
                                                                                    if (b == 100) {
                                                                                        cm.dispose();
                                                                                        cm.openNpc(9062004)
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};